Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print out a more helpful type error message for do-blocks/for-loops #4141

Closed

Conversation

catamorphism
Copy link
Contributor

If a do-block body has the wrong type, or a for-loop body has a
non-() type, suggest that the user might have meant the other one.

As per #2817

r? @brson

If a do-block body has the wrong type, or a for-loop body has a
non-() type, suggest that the user might have meant the other one.

As per rust-lang#2817
@brson
Copy link
Contributor

brson commented Dec 8, 2012

r+, though I'd like to know your thoughts about the criteria for the check.

@catamorphism
Copy link
Contributor Author

Sure, that seems reasonable. I was trying to not do any more than I was testing for. I changed the check, added a few more test cases, and merged it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants